package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.ProductDto;
import com.atguigu.spzx.model.entity.base.ProductUnit;
import com.atguigu.spzx.model.entity.product.Product;
import com.atguigu.spzx.model.entity.product.ProductDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductDetailsMapper {

    void insertProductDetails(ProductDetails productDetails);

    ProductDetails getByProductId(Long productId);

    void deleteByProductId(Long id);

    void updateByProductId(@Param("productId") Long productId, @Param("detailsImageUrls") String detailsImageUrls);
}
